﻿@using MVC_web.Controllers
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link  type="text/css" rel="stylesheet" href="../../Bootstrap3.0.3/css/bootstrap.css" />
    <title>Index</title>
    
</head>
    <body>
        <div class="nav-header">
            <nav>
                <a class="btn btn-info" href="@Url.Action("NewGasoline", "Home")">Новая заправка</a>
                <button class="btn navbar-btn">Отчёт</button>
            </nav>
        </div>
        <div>
            <table class="table table-bordered table-hover table-striped">
                <thead>
                    <tr>
                        <td>ID</td>
                        <td>Date</td>
                        <td>Car</td>
                        <td>Kilometers</td>
                        <td>Liters</td>
                        <td>Price/l</td>
                    </tr>
                </thead>
                <tbody>
                    @foreach (CommonFillupView f in ViewBag.FillView)
                    {
                        <tr>
                            <td>@f.Id</td>
                            <td>@f.Date</td>
                            <td>@f.Car</td>
                            <td>@f.Kilometers</td>
                            <td>@f.Liters</td>
                            <td>@f.Price</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </body>
</html>
